#ifdef GL_ES
// Set default precision to medium
precision mediump int;
precision mediump float;
#endif

uniform sampler2D texture;

varying vec2 v_texcoord;
varying vec3 v_normal;


//! [0]
void main()
{
    // Set fragment color from texture

    float diff = abs(dot(v_normal,vec3(0,0,1)));
    gl_FragColor = vec4(diff,diff,diff,1.0);
}
//! [0]
